

<%@page import="com.sfd.entity.*" %>

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addbook.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
<body align="center"  bgcolor="#0094D4">
<%

	Book book = (Book)request.getAttribute("book");

 %>
<form action="managerServlet?actioncode=updatebook&bookID=<%=book.getBookID() %>" method="post">
  <table width="378" height="427" border="1" align="center">
    <tr align="center" bgcolor="#F3F3F3">
      <td colspan="3" bgcolor="#CCFFFF">编辑图书</td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td width="91" align="center" bgcolor="#EBEBEB">图书编号：</td>
      <td colspan="2"><%=book.getBookID()%></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td align="center" bgcolor="#EBEBEB"><p>图书名称：</p></td>
      <td colspan="2"><input type="text" name="bookName"  value=<%=book.getBookName() %> width="200px" onClick="setday(this)"/></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td align="center" bgcolor="#EBEBEB">作者：</td>
      <td colspan="2"><input value=<%=book.getAuthor() %> type="text" name="author" width="200px" onClick="setday(this)">
      </td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td align="center" bgcolor="#EBEBEB">出版社：</td>
      <td colspan="2"><input type="text" name="publish" value=<%=book.getPublish() %> width="200px" onClick="setday(this)"/></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td align="center" bgcolor="#EBEBEB">入馆日期：</td>
      <td colspan="2"><input type="text" name="buyTime" value=<%=book.getBuyTime() %> width="200px" onClick="setday(this)"/></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td align="center" bgcolor="#EBEBEB">单价：</td>
      <td colspan="2"><input type="text" name="bookPrice" value=<%=book.getBookPrice() %> "/></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td align="center" bgcolor="#EBEBEB">状态：</td>
      <td colspan="2">可借：
          <input type="radio" name="bookStatus" value="1" checked="checked"/>
        不可借：
        <input type="radio" name="bookStatus" value="0" /></td>
    </tr>
    <tr bgcolor="#EBEBEB">
      <td colspan="3" align="center"><table width="251" border="0">
          <tr>
            <td width="135"><input name="submit" type="submit" value="提交" /></td>
            <td width="100"><input name="reset" type="reset" value="重置" /></td>
          </tr>
      </table></td>
    </tr>
  </table>
</form>
</body>
</html>
